package com.mr.model;

import org.hibernate.validator.constraints.NotEmpty;

public class QQInfo extends BaseObject {
	private static final long serialVersionUID = 6420574818462641585L;
	private Long id;
	private Long relatedid;
	@NotEmpty(message="qq不能为空！")
	private String qq;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getRelatedid() {
		return relatedid;
	}

	public void setRelatedid(Long relatedid) {
		this.relatedid = relatedid;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (!(o instanceof QQInfo))
			return false;

		final QQInfo temp = (QQInfo) o;

		return !(this.getId() != null ? !(this.getId().equals(temp.getId()))
				: (temp.getId() != null));

	}

	public int hashCode() {
		return (this.getId() != null ? this.getId().hashCode() : 0);
	}
}
